.class public Lcom/example/m6wmr/PayActivity;
.super Landroid/app/Activity;
.source "PayActivity.java"


# annotations
.annotation build Landroid/annotation/SuppressLint;
    value = {
        "SetJavaScriptEnabled"
    }
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/example/m6wmr/PayActivity$Waimairenjsobj;
    }
.end annotation


# static fields
.field public static shopshow:Lcom/example/m6wmr/PayActivity;


# instance fields
.field private areaid:Ljava/lang/String;

.field private cursor:Landroid/database/Cursor;

.field private cv:Landroid/content/ContentValues;

.field private db:Landroid/database/sqlite/SQLiteDatabase;

.field private goint:I

.field private goodsls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/GoodsBean;",
            ">;"
        }
    .end annotation
.end field

.field private goodsstr:Ljava/lang/String;

.field public h:Landroid/os/Handler;

.field private helper:Ldbclass/DBOpenHelper;

.field private loaddata:Z

.field m:Lmyapp/MyApp;

.field private mHandler:Landroid/os/Handler;

.field private mWebView:Landroid/webkit/WebView;

.field private mcontext:Landroid/content/Context;

.field private orderid:Ljava/lang/String;

.field pd:Landroid/app/ProgressDialog;

.field private pingstr:Ljava/lang/String;

.field shoplayout:Landroid/widget/LinearLayout;

.field private shopname:Ljava/lang/String;

.field private shopstr:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x0

    .line 51
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 52
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/PayActivity;->areaid:Ljava/lang/String;

    .line 53
    iput-object v1, p0, Lcom/example/m6wmr/PayActivity;->m:Lmyapp/MyApp;

    .line 56
    iput-object v1, p0, Lcom/example/m6wmr/PayActivity;->h:Landroid/os/Handler;

    .line 58
    iput-object v1, p0, Lcom/example/m6wmr/PayActivity;->shoplayout:Landroid/widget/LinearLayout;

    .line 59
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/PayActivity;->mHandler:Landroid/os/Handler;

    .line 60
    iput-object v1, p0, Lcom/example/m6wmr/PayActivity;->pd:Landroid/app/ProgressDialog;

    .line 61
    iput-boolean v2, p0, Lcom/example/m6wmr/PayActivity;->loaddata:Z

    .line 62
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/PayActivity;->orderid:Ljava/lang/String;

    .line 63
    iput-object v1, p0, Lcom/example/m6wmr/PayActivity;->goodsstr:Ljava/lang/String;

    .line 66
    iput-object v1, p0, Lcom/example/m6wmr/PayActivity;->cursor:Landroid/database/Cursor;

    .line 69
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/PayActivity;->shopname:Ljava/lang/String;

    .line 70
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/PayActivity;->shopstr:Ljava/lang/String;

    .line 71
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/PayActivity;->pingstr:Ljava/lang/String;

    .line 72
    iput v2, p0, Lcom/example/m6wmr/PayActivity;->goint:I

    .line 51
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/PayActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 62
    iget-object v0, p0, Lcom/example/m6wmr/PayActivity;->orderid:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$1(Lcom/example/m6wmr/PayActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 55
    iget-object v0, p0, Lcom/example/m6wmr/PayActivity;->mcontext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$2(Lcom/example/m6wmr/PayActivity;Z)V
    .locals 0

    .prologue
    .line 61
    iput-boolean p1, p0, Lcom/example/m6wmr/PayActivity;->loaddata:Z

    return-void
.end method

.method static synthetic access$3(Lcom/example/m6wmr/PayActivity;)Landroid/webkit/WebView;
    .locals 1

    .prologue
    .line 57
    iget-object v0, p0, Lcom/example/m6wmr/PayActivity;->mWebView:Landroid/webkit/WebView;

    return-object v0
.end method

.method static synthetic access$4(Lcom/example/m6wmr/PayActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 63
    iget-object v0, p0, Lcom/example/m6wmr/PayActivity;->goodsstr:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$5(Lcom/example/m6wmr/PayActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 70
    iget-object v0, p0, Lcom/example/m6wmr/PayActivity;->shopstr:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$6(Lcom/example/m6wmr/PayActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 71
    iget-object v0, p0, Lcom/example/m6wmr/PayActivity;->pingstr:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$7(Lcom/example/m6wmr/PayActivity;)Z
    .locals 1

    .prologue
    .line 61
    iget-boolean v0, p0, Lcom/example/m6wmr/PayActivity;->loaddata:Z

    return v0
.end method


# virtual methods
.method public PostMsg()Z
    .locals 1

    .prologue
    .line 238
    new-instance v0, Lcom/example/m6wmr/PayActivity$4;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/PayActivity$4;-><init>(Lcom/example/m6wmr/PayActivity;)V

    .line 267
    invoke-virtual {v0}, Lcom/example/m6wmr/PayActivity$4;->start()V

    .line 268
    const/4 v0, 0x0

    return v0
.end method

.method public loadUrl(Ljava/lang/String;)V
    .locals 2
    .param p1, "url"    # Ljava/lang/String;

    .prologue
    .line 274
    iget-object v0, p0, Lcom/example/m6wmr/PayActivity;->mWebView:Landroid/webkit/WebView;

    if-eqz v0, :cond_0

    .line 276
    iget-object v0, p0, Lcom/example/m6wmr/PayActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v0, p1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    .line 277
    const-string v0, "\u8ba2\u5355\u652f\u4ed8"

    const-string v1, "\u6570\u636e\u52a0\u8f7d\u4e2d..."

    invoke-static {p0, v0, v1}, Landroid/app/ProgressDialog;->show(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Landroid/app/ProgressDialog;

    move-result-object v0

    iput-object v0, p0, Lcom/example/m6wmr/PayActivity;->pd:Landroid/app/ProgressDialog;

    .line 278
    iget-object v0, p0, Lcom/example/m6wmr/PayActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->reload()V

    .line 280
    :cond_0
    return-void
.end method

.method public loaddatatojs()Z
    .locals 1

    .prologue
    .line 285
    new-instance v0, Lcom/example/m6wmr/PayActivity$5;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/PayActivity$5;-><init>(Lcom/example/m6wmr/PayActivity;)V

    .line 314
    invoke-virtual {v0}, Lcom/example/m6wmr/PayActivity$5;->start()V

    .line 315
    const/4 v0, 0x0

    return v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 8
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 76
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 77
    const v5, 0x7f030031

    invoke-virtual {p0, v5}, Lcom/example/m6wmr/PayActivity;->setContentView(I)V

    .line 79
    invoke-virtual {p0}, Lcom/example/m6wmr/PayActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v5

    check-cast v5, Lmyapp/MyApp;

    iput-object v5, p0, Lcom/example/m6wmr/PayActivity;->m:Lmyapp/MyApp;

    .line 80
    iget-object v5, p0, Lcom/example/m6wmr/PayActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v5}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    .line 81
    .local v0, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 82
    iput-object p0, p0, Lcom/example/m6wmr/PayActivity;->mcontext:Landroid/content/Context;

    .line 83
    sput-object p0, Lcom/example/m6wmr/PayActivity;->shopshow:Lcom/example/m6wmr/PayActivity;

    .line 85
    const/high16 v5, 0x7f0c0000

    invoke-virtual {p0, v5}, Lcom/example/m6wmr/PayActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    .line 86
    .local v3, "top":Landroid/widget/LinearLayout;
    iget-object v5, p0, Lcom/example/m6wmr/PayActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v5}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v5

    const-string v6, "1"

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_0

    .line 87
    const v5, 0x7f070026

    invoke-virtual {v3, v5}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 89
    :cond_0
    new-instance v5, Ljava/util/ArrayList;

    invoke-direct {v5}, Ljava/util/ArrayList;-><init>()V

    iput-object v5, p0, Lcom/example/m6wmr/PayActivity;->goodsls:Ljava/util/List;

    .line 91
    invoke-virtual {p0}, Lcom/example/m6wmr/PayActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    .line 92
    .local v2, "intent":Landroid/content/Intent;
    const-string v5, "orderid"

    invoke-virtual {v2, v5}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    iput-object v5, p0, Lcom/example/m6wmr/PayActivity;->orderid:Ljava/lang/String;

    .line 94
    new-instance v5, Lcom/example/m6wmr/PayActivity$1;

    invoke-direct {v5, p0}, Lcom/example/m6wmr/PayActivity$1;-><init>(Lcom/example/m6wmr/PayActivity;)V

    iput-object v5, p0, Lcom/example/m6wmr/PayActivity;->h:Landroid/os/Handler;

    .line 160
    const v5, 0x7f0c0001

    invoke-virtual {p0, v5}, Lcom/example/m6wmr/PayActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    .line 161
    .local v1, "closebtn":Landroid/widget/ImageView;
    new-instance v5, Lcom/example/m6wmr/PayActivity$2;

    invoke-direct {v5, p0}, Lcom/example/m6wmr/PayActivity$2;-><init>(Lcom/example/m6wmr/PayActivity;)V

    invoke-virtual {v1, v5}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 168
    const v5, 0x7f0c001c

    invoke-virtual {p0, v5}, Lcom/example/m6wmr/PayActivity;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/webkit/WebView;

    iput-object v5, p0, Lcom/example/m6wmr/PayActivity;->mWebView:Landroid/webkit/WebView;

    .line 169
    iget-object v5, p0, Lcom/example/m6wmr/PayActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v5}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v4

    .line 170
    .local v4, "webSettings":Landroid/webkit/WebSettings;
    const/4 v5, 0x1

    invoke-virtual {v4, v5}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V

    .line 172
    iget-object v5, p0, Lcom/example/m6wmr/PayActivity;->mWebView:Landroid/webkit/WebView;

    new-instance v6, Lcom/example/m6wmr/PayActivity$Waimairenjsobj;

    const/4 v7, 0x0

    invoke-direct {v6, p0, v7}, Lcom/example/m6wmr/PayActivity$Waimairenjsobj;-><init>(Lcom/example/m6wmr/PayActivity;Lcom/example/m6wmr/PayActivity$Waimairenjsobj;)V

    const-string v7, "waimai"

    invoke-virtual {v5, v6, v7}, Landroid/webkit/WebView;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    .line 173
    iget-object v5, p0, Lcom/example/m6wmr/PayActivity;->mWebView:Landroid/webkit/WebView;

    if-eqz v5, :cond_1

    .line 175
    iget-object v5, p0, Lcom/example/m6wmr/PayActivity;->mWebView:Landroid/webkit/WebView;

    new-instance v6, Lcom/example/m6wmr/PayActivity$3;

    invoke-direct {v6, p0}, Lcom/example/m6wmr/PayActivity$3;-><init>(Lcom/example/m6wmr/PayActivity;)V

    invoke-virtual {v5, v6}, Landroid/webkit/WebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    .line 188
    :cond_1
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 4
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v3, 0x0

    .line 336
    const/4 v1, 0x4

    if-ne p1, v1, :cond_0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v1

    if-nez v1, :cond_0

    .line 337
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    .line 338
    .local v0, "intent":Landroid/content/Intent;
    const-string v1, "orderid"

    iget-object v2, p0, Lcom/example/m6wmr/PayActivity;->orderid:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 339
    const-class v1, Lcom/wmr/order/OrderDetFrameActivity;

    invoke-virtual {v0, p0, v1}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 340
    invoke-virtual {p0, v0}, Lcom/example/m6wmr/PayActivity;->startActivity(Landroid/content/Intent;)V

    .line 341
    invoke-virtual {p0}, Lcom/example/m6wmr/PayActivity;->finish()V

    .line 345
    .end local v0    # "intent":Landroid/content/Intent;
    :cond_0
    return v3
.end method

.method public onStart()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 322
    iput v4, p0, Lcom/example/m6wmr/PayActivity;->goint:I

    .line 323
    const-string v3, "userInfo"

    invoke-virtual {p0, v3, v4}, Lcom/example/m6wmr/PayActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    .line 325
    .local v0, "preferences":Landroid/content/SharedPreferences;
    const-string v3, "uid"

    const-string v4, ""

    invoke-interface {v0, v3, v4}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 326
    .local v2, "uid":Ljava/lang/String;
    const-string v3, "pass"

    const-string v4, ""

    invoke-interface {v0, v3, v4}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 328
    .local v1, "pwd":Ljava/lang/String;
    new-instance v3, Ljava/lang/StringBuilder;

    iget-object v4, p0, Lcom/example/m6wmr/PayActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v4}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, "/index.php?ctrl=app&action=subshow&orderid="

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-object v4, p0, Lcom/example/m6wmr/PayActivity;->orderid:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "&uid="

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "&pwd="

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p0, v3}, Lcom/example/m6wmr/PayActivity;->loadUrl(Ljava/lang/String;)V

    .line 330
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    .line 331
    return-void
.end method
